<!DOCTYPE html><html><head><title>任务分析</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h2 id="任务分析">任务分析</h2>

<blockquote>
  <p>共 <code>initParam</code> <code>search</code> <code>updateTaskType</code> <code>updateTaskName</code>  <code>updatePlatform</code> <code>updateChannel</code> <code>updateServer</code> 七个接口</p>
</blockquote>

<hr>

<h3 id="initparam"><code>initParam</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">请求条件初始化<br>需要服务器初始化的请求条件有平台、渠道、区服、任务类型和任务名称五个，其中前三个下拉框默认值为<span class="hljs-string">"0"</span>，后两个下拉框默认值为<span class="hljs-string">"-99999"</span><br>查询时间由前端自行初始化，值为一天前<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/init</span>Param.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs groovy"><span class="hljs-number">1.</span> <span class="hljs-string">callback :</span> <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    platformItmes:</span> {<br>        全平台: <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">        iOS:</span> <span class="hljs-string">"2"</span>,<br>        安卓: <span class="hljs-string">"3"</span>,<br>        通用: <span class="hljs-string">"9"</span><br>    },<br><span class="hljs-symbol">    channelItmes:</span> {<br>        全渠道: <span class="hljs-string">"0"</span>,<br>        <span class="hljs-number">360</span>: <span class="hljs-string">"83"</span>,<br>        百度: <span class="hljs-string">"13"</span><br>    },<br><span class="hljs-symbol">    serverItmes:</span> {<br>        全区服: <span class="hljs-string">"0"</span>,<br>        神谕<span class="hljs-number">1</span>区: <span class="hljs-string">"1002"</span>,<br>        神谕<span class="hljs-number">2</span>区: <span class="hljs-string">"1004"</span><br>    },<br><span class="hljs-symbol">    taskTypeItmes:</span> {<br>        全部任务类型: <span class="hljs-string">"-99999"</span>,<br>        主线任务: <span class="hljs-string">"1"</span><br>    },<br><span class="hljs-symbol">    uiTaskNameItmes:</span> {<br>        全部任务: <span class="hljs-string">"-99999"</span>,<br>        任务<span class="hljs-number">1</span>: <span class="hljs-string">"1"</span>,<br>        任务<span class="hljs-number">2</span>: <span class="hljs-string">"2"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">根据请求条件，查询并返回结果<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/search</span>.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs axapta"><span class="hljs-number">1.</span> dsearch : <span class="hljs-string">"2017-06-01"</span>      <span class="hljs-meta"># 查询时间 </span><br><span class="hljs-number">2.</span> platform : <span class="hljs-string">"0"</span>              <span class="hljs-meta"># 平台    </span><br><span class="hljs-number">3.</span> channel : <span class="hljs-string">"0"</span>               <span class="hljs-meta"># 渠道</span><br><span class="hljs-number">4.</span> <span class="hljs-keyword">server</span> : <span class="hljs-string">"1001"</span>             <span class="hljs-meta"># 区服</span><br><span class="hljs-number">5.</span> taskType : <span class="hljs-string">"1"</span>              <span class="hljs-meta"># 任务类型</span><br><span class="hljs-number">6.</span> taskName : <span class="hljs-string">"1001"</span>           <span class="hljs-meta"># 任务名称</span><br><span class="hljs-number">7.</span> callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    activeUserTaskCompletedsTran:</span> {    <span class="hljs-meta"># 活跃用户主线任务转化情况数据列表</span><br><span class="hljs-symbol">        dateStr:</span> <span class="hljs-string">"2016-05-19"</span>,        <span class="hljs-meta"># 时间</span><br><span class="hljs-symbol">        taskType:</span> <span class="hljs-string">"2"</span>,                <span class="hljs-meta"># 任务类型</span><br><span class="hljs-symbol">        taskId:</span> <span class="hljs-string">"3001"</span>,               <span class="hljs-meta"># 任务id</span><br><span class="hljs-symbol">        taskName:</span> <span class="hljs-string">"任务1"</span>,             <span class="hljs-meta"># 任务名称</span><br><span class="hljs-symbol">        openLevel:</span> <span class="hljs-number">20</span>,                <span class="hljs-meta"># 开启等级</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playUserNum:</span> <span class="hljs-number">304</span>,             <span class="hljs-meta"># 参与角色数</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playRadio:</span> <span class="hljs-number">0.56</span>,              <span class="hljs-meta"># 参与率</span><br><span class="hljs-symbol">        playTimes:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 参与次数</span><br><span class="hljs-symbol">        okRadio:</span> <span class="hljs-number">0.44</span>,                <span class="hljs-meta"># 转化率</span><br><span class="hljs-symbol">        avgPlayTimes:</span> <span class="hljs-number">5</span>,              <span class="hljs-meta"># 人均次数</span><br><span class="hljs-symbol">        avgTime:</span> <span class="hljs-number">3</span>                    <span class="hljs-meta"># 平均完成时间(m)</span><br>    },       <br><span class="hljs-symbol">    activeUserTaskCompletedChartTran:</span> {    <span class="hljs-meta"># 活跃用户主线任务转化情况图表数据</span><br><span class="hljs-symbol">        jsonStr:</span> <span class="hljs-string">"{"</span>columnkeys<span class="hljs-string">":["</span><span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-18</span><span class="hljs-string">","</span><span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-19</span><span class="hljs-string">"],"</span>minData<span class="hljs-string">":15,"</span>names<span class="hljs-string">":["</span>DA<span class="hljs-string">U"],"</span>maxData<span class="hljs-string">":3020,"</span>data<span class="hljs-string">":[[15,3020]],"</span>rowkeys<span class="hljs-string">":["</span>[日期]<span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-18</span> - <span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-19</span><span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>spline<span class="hljs-string">"}"</span>      <br>    },<br><span class="hljs-symbol">    newUserTaskCompletedsTran:</span> {    <span class="hljs-meta"># 新增用户主线任务转化情况数据列表</span><br><span class="hljs-symbol">        dateStr:</span> <span class="hljs-string">"2016-05-19"</span>,        <span class="hljs-meta"># 时间</span><br><span class="hljs-symbol">        taskType:</span> <span class="hljs-string">"2"</span>,                <span class="hljs-meta"># 任务类型</span><br><span class="hljs-symbol">        taskId:</span> <span class="hljs-string">"3001"</span>,               <span class="hljs-meta"># 任务id</span><br><span class="hljs-symbol">        taskName:</span> <span class="hljs-string">"任务1"</span>,             <span class="hljs-meta"># 任务名称</span><br><span class="hljs-symbol">        openLevel:</span> <span class="hljs-number">20</span>,                <span class="hljs-meta"># 开启等级</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playUserNum:</span> <span class="hljs-number">304</span>,             <span class="hljs-meta"># 参与角色数</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playRadio:</span> <span class="hljs-number">0.56</span>,              <span class="hljs-meta"># 参与率</span><br><span class="hljs-symbol">        playTimes:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 参与次数</span><br><span class="hljs-symbol">        okRadio:</span> <span class="hljs-number">0.44</span>,                <span class="hljs-meta"># 转化率</span><br><span class="hljs-symbol">        avgPlayTimes:</span> <span class="hljs-number">5</span>,              <span class="hljs-meta"># 人均次数</span><br><span class="hljs-symbol">        avgTime:</span> <span class="hljs-number">3</span>                    <span class="hljs-meta"># 平均完成时间(m)</span><br>    },<br><span class="hljs-symbol">    newUserTaskCompletedChartTran:</span> {    <span class="hljs-meta"># 新增用户主线任务转化情况图表数据</span><br><span class="hljs-symbol">        jsonStr:</span> <span class="hljs-string">"{"</span>columnkeys<span class="hljs-string">":["</span><span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-18</span><span class="hljs-string">","</span><span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-19</span><span class="hljs-string">"],"</span>minData<span class="hljs-string">":15,"</span>names<span class="hljs-string">":["</span>DA<span class="hljs-string">U"],"</span>maxData<span class="hljs-string">":3020,"</span>data<span class="hljs-string">":[[15,3020]],"</span>rowkeys<span class="hljs-string">":["</span>[日期]<span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-18</span> - <span class="hljs-number">2016</span><span class="hljs-number">-05</span><span class="hljs-number">-19</span><span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>spline<span class="hljs-string">"}"</span>      <br>    },<br><span class="hljs-symbol">    activeUserTaskCompleteds:</span> {    <span class="hljs-meta"># 活跃用户完成情况数据列表</span><br><span class="hljs-symbol">        dateStr:</span> <span class="hljs-string">"2016-05-19"</span>,        <span class="hljs-meta"># 时间</span><br><span class="hljs-symbol">        taskType:</span> <span class="hljs-string">"2"</span>,                <span class="hljs-meta"># 任务类型</span><br><span class="hljs-symbol">        taskId:</span> <span class="hljs-string">"3001"</span>,               <span class="hljs-meta"># 任务id</span><br><span class="hljs-symbol">        taskName:</span> <span class="hljs-string">"任务1"</span>,             <span class="hljs-meta"># 任务名称</span><br><span class="hljs-symbol">        openLevel:</span> <span class="hljs-number">20</span>,                <span class="hljs-meta"># 开启等级</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playUserNum:</span> <span class="hljs-number">304</span>,             <span class="hljs-meta"># 参与角色数</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playRadio:</span> <span class="hljs-number">0.56</span>,              <span class="hljs-meta"># 参与率</span><br><span class="hljs-symbol">        playTimes:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 参与次数</span><br><span class="hljs-symbol">        okRadio:</span> <span class="hljs-number">0.44</span>,                <span class="hljs-meta"># 转化率</span><br><span class="hljs-symbol">        avgPlayTimes:</span> <span class="hljs-number">5</span>,              <span class="hljs-meta"># 人均次数</span><br><span class="hljs-symbol">        avgTime:</span> <span class="hljs-number">3</span>                    <span class="hljs-meta"># 平均完成时间(m)</span><br>    },<br><span class="hljs-symbol">    newUserTaskCompleteds:</span> {    <span class="hljs-meta"># 新增用户完成情况数据列表</span><br><span class="hljs-symbol">        dateStr:</span> <span class="hljs-string">"2016-05-19"</span>,        <span class="hljs-meta"># 时间</span><br><span class="hljs-symbol">        taskType:</span> <span class="hljs-string">"2"</span>,                <span class="hljs-meta"># 任务类型</span><br><span class="hljs-symbol">        taskId:</span> <span class="hljs-string">"3001"</span>,               <span class="hljs-meta"># 任务id</span><br><span class="hljs-symbol">        taskName:</span> <span class="hljs-string">"任务1"</span>,             <span class="hljs-meta"># 任务名称</span><br><span class="hljs-symbol">        openLevel:</span> <span class="hljs-number">20</span>,                <span class="hljs-meta"># 开启等级</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playUserNum:</span> <span class="hljs-number">304</span>,             <span class="hljs-meta"># 参与角色数</span><br><span class="hljs-symbol">        okUserNum:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 满足条件角色数</span><br><span class="hljs-symbol">        playRadio:</span> <span class="hljs-number">0.56</span>,              <span class="hljs-meta"># 参与率</span><br><span class="hljs-symbol">        playTimes:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 参与次数</span><br><span class="hljs-symbol">        okRadio:</span> <span class="hljs-number">0.44</span>,                <span class="hljs-meta"># 转化率</span><br><span class="hljs-symbol">        avgPlayTimes:</span> <span class="hljs-number">5</span>,              <span class="hljs-meta"># 人均次数</span><br><span class="hljs-symbol">        avgTime:</span> <span class="hljs-number">3</span>                    <span class="hljs-meta"># 平均完成时间(m)</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="updatetasktype"><code>updateTaskType</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择任务类型时触发的操作，查询并返回新的任务名称列表和当前选中的任务名称，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/update</span>TaskType.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. taskType : <span class="hljs-string">"2"</span>       <span class="hljs-meta"># 选中的任务类型</span><br><span class="hljs-number">2</span>. callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    uiTaskNameItmes:</span> {       <span class="hljs-meta"># 任务名称列表</span><br>        全部任务: <span class="hljs-string">"-99999"</span>,<br>        任务<span class="hljs-number">1</span>: <span class="hljs-string">"1"</span>,<br>        任务<span class="hljs-number">2</span>: <span class="hljs-string">"2"</span><br>    },<br><span class="hljs-symbol">    taskName:</span> <span class="hljs-string">"-99999"</span>    <span class="hljs-meta"># 当前选中的任务名称</span><br>}<br></code></pre>

<hr>

<h3 id="updatetaskname"><code>updateTaskName</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择任务名称时触发的操作，查询并返回新的当前选中的任务类型，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/update</span>TaskName.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. taskName : <span class="hljs-string">"2001"</span>       <span class="hljs-meta"># 选中的任务名称</span><br><span class="hljs-number">2</span>. callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs css">{<br>    <span class="hljs-attribute">res</span>: <span class="hljs-string">"0"</span>,<br>    taskType: <span class="hljs-string">"2"</span>  # 当前选中的任务类型<br>}<br></code></pre>

<hr>

<h3 id="updateplatform"><code>updatePlatform</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择某平台时触发的操作。根据选中的平台，查询并返回新的渠道和区服列表，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/update</span>Platform.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs livecodeserver"><span class="hljs-number">1.</span>  <span class="hljs-built_in">platform</span>： <span class="hljs-string">"2"</span>    <span class="hljs-comment"># 选中的平台</span><br><span class="hljs-number">2.</span>  callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clojure">{<br>    res: <span class="hljs-string">"0"</span>,<br>    channelItmes: {<br>        全渠道: <span class="hljs-string">"0"</span><br>    },<br>    serverItmes: {<br>        全区服: <span class="hljs-string">"0"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="updatechannel"><code>updateChannel</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择某渠道时触发的操作。根据选中的渠道，查询并返回新的平台和区服列表，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/update</span>Channel.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>.  channel： <span class="hljs-string">"2"</span>    <span class="hljs-meta"># 选中的渠道</span><br><span class="hljs-number">2</span>.  callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clojure">{<br>    res: <span class="hljs-string">"0"</span>,<br>    platformItmes: {<br>        全平台: <span class="hljs-string">"0"</span><br>    },<br>    serverItmes: {<br>        全区服: <span class="hljs-string">"0"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="updateserver"><code>updateServer</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择某区服时触发的操作。根据选中的区服，查询并返回新的平台和渠道列表，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/taskGame/update</span>Server.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs axapta"><span class="hljs-number">1.</span>  <span class="hljs-keyword">server</span>： <span class="hljs-string">"1002"</span>    <span class="hljs-meta"># 选中的区服</span><br><span class="hljs-number">2.</span>  callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs clojure">{<br>    res: <span class="hljs-string">"0"</span>,<br>    platformItmes: {<br>        全渠道: <span class="hljs-string">"0"</span><br>    },<br>    channelItmes: {<br>        全渠道: <span class="hljs-string">"0"</span><br>    }<br>}<br></code></pre></div></body></html>